import request from '@/utils/request'

//分页查询
export const queryPageApi = (params) => request.get(`/users`,{params:params})

//添加用户
export const addApi =(data) => request.post(`/users`,data)

//根据id查询用户
export const queryByIdApi =(id) => request.get(`/users/${id}`)

//修改用户
export const updateApi =(data) => request.put(`/users`,data)

//删除用户
export const deleteApi = (id) => request.delete(`/users/${id}`)

//批量删除用户
export const batchDeleteApi = (ids) => request.delete(`/users/${ids}`)
